package com.dhecp.core.constant;

import java.util.HashMap;
import java.util.Map;

import com.dhecp.project.base.domain.BaseInfo;
import com.dhecp.project.base.domain.CompanyInfo;
import com.dhecp.project.base.domain.LogsticsServer;
import com.dhecp.project.business.domain.FbaPlanOrder;
import com.dhecp.project.business.domain.FbaPlanOrderDetail;
import com.dhecp.project.business.domain.IndexImage;
import com.dhecp.project.business.domain.LogsticsPattern;
import com.dhecp.project.business.domain.ProductActive;
import com.dhecp.project.business.domain.ProductActiveCompete;
import com.dhecp.project.business.domain.ProductActiveComponent;
import com.dhecp.project.business.domain.ProductBasis;
import com.dhecp.project.business.domain.ProductBasisCompete;
import com.dhecp.project.business.domain.ProductBasisComponent;
import com.dhecp.project.business.domain.ProductCarefullyChosen;
import com.dhecp.project.business.domain.ProductHistory;
import com.dhecp.project.business.domain.ProductInfo;
import com.dhecp.project.business.domain.ProductMG;
import com.dhecp.project.business.domain.ProductMS;
import com.dhecp.project.business.domain.ProductXGSQ;
import com.dhecp.project.business.domain.ProductXP;
import com.dhecp.project.business.domain.StockProduceSerialNumber;
import com.dhecp.project.business.domain.WeeklyFinishAccount;
import com.dhecp.project.common.domain.UpdateLog;
import com.dhecp.project.finance.domain.CompanyCreditExtension;
import com.dhecp.project.finance.domain.CompanyCreditReturn;
import com.dhecp.project.finance.domain.ExpenseTransfer;
import com.dhecp.project.finance.domain.OperateExpenseTransfer;
import com.dhecp.project.finance.domain.OperateServiceChargeApply;
import com.dhecp.project.finance.domain.PartnerBookedApply;
import com.dhecp.project.finance.domain.PartnerPaymentApply;
import com.dhecp.project.finance.domain.ReimbursementApply;
import com.dhecp.project.flowable.domain.ActHistoricInstance;
import com.dhecp.project.flowable.domain.ActHistoricTask;
import com.dhecp.project.flowable.domain.ActProcessDefinition;
import com.dhecp.project.flowable.domain.ActProcessModel;
import com.dhecp.project.hr.domain.AmazonAnalysis;
import com.dhecp.project.hr.domain.AmazonShop;
import com.dhecp.project.hr.domain.AmazonShopExchangeRate;
import com.dhecp.project.hr.domain.AmazonShopOrder;
import com.dhecp.project.hr.domain.AmazonShopProduct;
import com.dhecp.project.hr.domain.AmazonShopProductReport;
import com.dhecp.project.hr.domain.AttendanceJB;
import com.dhecp.project.hr.domain.AttendanceQJ;
import com.dhecp.project.hr.domain.AttendanceTX;
import com.dhecp.project.hr.domain.AttendanceWC;
import com.dhecp.project.hr.domain.AttendanceWorkDateSet;
import com.dhecp.project.hr.domain.EmployeesCareAbout;
import com.dhecp.project.hr.domain.InterviewResults;
import com.dhecp.project.hr.domain.JobContentForProbation;
import com.dhecp.project.hr.domain.OperateBindApply;
import com.dhecp.project.hr.domain.OperateBindExit;
import com.dhecp.project.hr.domain.OperateBindTransfer;
import com.dhecp.project.hr.domain.OperateCompanyApply;
import com.dhecp.project.hr.domain.OperateCompanyExit;
import com.dhecp.project.hr.domain.OperateCompanyLevel;
import com.dhecp.project.hr.domain.OperateCompanyRatio;
import com.dhecp.project.hr.domain.OperateCompanyRoute;
import com.dhecp.project.hr.domain.OperateLevelApply;
import com.dhecp.project.hr.domain.OperateOrgTransfer;
import com.dhecp.project.hr.domain.OperateUserApply;
import com.dhecp.project.hr.domain.OperateUserExit;
import com.dhecp.project.hr.domain.OperateUserInfo;
import com.dhecp.project.hr.domain.PositionChangeApply;
import com.dhecp.project.hr.domain.PositionInstructions;
import com.dhecp.project.hr.domain.PositionInterviewApply;
import com.dhecp.project.hr.domain.PositionRecruitmentApply;
import com.dhecp.project.hr.domain.PositionRecruitmentModify;
import com.dhecp.project.hr.domain.PositionUserApply;
import com.dhecp.project.hr.domain.PositionUserLeave;
import com.dhecp.project.hr.domain.RecruitmentApply;
import com.dhecp.project.hr.domain.SalaryBaseEntry;
import com.dhecp.project.hr.domain.SalaryBaseInfo;
import com.dhecp.project.hr.domain.SalaryForProbation;
import com.dhecp.project.hr.domain.SalaryIncomeTax;
import com.dhecp.project.hr.domain.SalaryOtherEntry;
import com.dhecp.project.hr.domain.SalaryWelfare;
import com.dhecp.project.hr.domain.ScoreForProbation;
import com.dhecp.project.hr.domain.ScoreForProbationSelf;
import com.dhecp.project.hr.domain.TalentPool;
import com.dhecp.project.hr.domain.TrainingAppraiseLecturer;
import com.dhecp.project.hr.domain.TrainingExternalApply;
import com.dhecp.project.hr.domain.TrainingNeeds;
import com.dhecp.project.hr.domain.TrainingPlanEntryForm;
import com.dhecp.project.hr.domain.TrainingPlanEntryFormDetail;
import com.dhecp.project.hr.domain.TrainingPlanND;
import com.dhecp.project.hr.domain.TrainingPlanRecord;
import com.dhecp.project.hr.domain.TrainingPlanS;
import com.dhecp.project.hr.domain.TrainingPlanX;
import com.dhecp.project.hr.domain.UserPaymentGJJ;
import com.dhecp.project.hr.domain.UserPaymentSB;
import com.dhecp.project.hr.domain.UserPaymentYB;
import com.dhecp.project.hr.domain.UserPerformanceCondition;
import com.dhecp.project.hr.domain.UserPerformanceRule;
import com.dhecp.project.hr.domain.UserRank;
import com.dhecp.project.hr.domain.UserRankApply;
import com.dhecp.project.hr.domain.UserSalary;
import com.dhecp.project.hr.domain.UserWelfare;
import com.dhecp.project.logstics.domain.FbaBox;
import com.dhecp.project.logstics.domain.FbaBoxDetail;
import com.dhecp.project.oa.domain.BusinessCardApply;
import com.dhecp.project.oa.domain.FixedAssets;
import com.dhecp.project.oa.domain.MeetingRoom;
import com.dhecp.project.oa.domain.MeetingRoomAppointment;
import com.dhecp.project.oa.domain.MeetingRoomCancel;
import com.dhecp.project.oa.domain.Notice;
import com.dhecp.project.oa.domain.OfficeLoss;
import com.dhecp.project.oa.domain.OfficePaymentOrder;
import com.dhecp.project.oa.domain.OfficeReceive;
import com.dhecp.project.oa.domain.OfficeStock;
import com.dhecp.project.oa.domain.OrderOfficeSupplies;
import com.dhecp.project.oa.domain.Stamp;
import com.dhecp.project.oa.domain.StampApply;
import com.dhecp.project.purchase.domain.Distribution;
import com.dhecp.project.purchase.domain.DistributionSon;
import com.dhecp.project.purchase.domain.OfflinePayment;
import com.dhecp.project.purchase.domain.OfflinePaymentSon;
import com.dhecp.project.purchase.domain.OfflinePurchaseOrder;
import com.dhecp.project.purchase.domain.Payment;
import com.dhecp.project.purchase.domain.PaymentSon;
import com.dhecp.project.purchase.domain.PurchaseAddress;
import com.dhecp.project.purchase.domain.PurchaseOrder;
import com.dhecp.project.purchase.domain.PurchaseOrderSon;
import com.dhecp.project.purchase.domain.PurchasePlan;
import com.dhecp.project.purchase.domain.PurchasePlanCancel;
import com.dhecp.project.purchase.domain.PurchasePlanCancelSon;
import com.dhecp.project.purchase.domain.PurchasePlanSon;
import com.dhecp.project.purchase.domain.PurchasingSupplier;
import com.dhecp.project.purchase.domain.Refund;
import com.dhecp.project.purchase.domain.RefundSon;
import com.dhecp.project.statistics.domain.BankMoney;
import com.dhecp.project.statistics.domain.BankMoneyDetail;
import com.dhecp.project.statistics.domain.ClientGathering;
import com.dhecp.project.statistics.domain.ClientGatheringXm;
import com.dhecp.project.statistics.domain.ProviderPayment;
import com.dhecp.project.statistics.domain.UserSalesPerformance;
import com.dhecp.project.statistics.domain.UserSalesPerformanceXm;
import com.dhecp.project.storage.domain.AssemblyMaintain;
import com.dhecp.project.storage.domain.AssemblyPlan;
import com.dhecp.project.storage.domain.Dismounting;
import com.dhecp.project.storage.domain.GoodsAllocation;
import com.dhecp.project.storage.domain.ManualAssembly;
import com.dhecp.project.storage.domain.OfflinePurchaseStorage;
import com.dhecp.project.storage.domain.PurchaseStorage;
import com.dhecp.project.storage.domain.PurchasingError;
import com.dhecp.project.storage.domain.Putaway;
import com.dhecp.project.storage.domain.StockAllot;
import com.dhecp.project.storage.domain.StockControl;
import com.dhecp.project.storage.domain.StockHistory;
import com.dhecp.project.storage.domain.StockRecord;
import com.dhecp.project.storage.domain.StockTaking;
import com.dhecp.project.storage.domain.SubInvTransfer;
import com.dhecp.project.system.domain.MailContent;
import com.dhecp.project.system.domain.SysAccountBandDept;
import com.dhecp.project.system.domain.SysDataFolder;
import com.dhecp.project.system.domain.SysDepotInfo;
import com.dhecp.project.system.domain.SysOrganizationInfo;
import com.dhecp.project.system.domain.SysRoleInfo;
import com.dhecp.project.system.domain.SysUserInfo;

/**
 * 通过 ModuleTable 获取对应实体实例和功能名称
 * @author DH-Xxj
 * @version 2019年12月4日
 */
public class ModuleTableToEntity {

    /**
     * 通过 moduleTable 获取对应实体实例和功能名称
     * @param moduleTable
     * @return
     * @author DH-Xxj
     */
    public static final Map<String, Object> queryEntityByModuleTable(String moduleTable){
        Object entity = null;
        String moduleName = "未知功能";
        Map<String, Object> resMap = new HashMap<String, Object>();
        //如果ModuleTable以GROUP结尾则切割字符串，实现整单与明细实体共用
        if(moduleTable.toUpperCase().endsWith("GROUP"))moduleTable = moduleTable.toUpperCase().substring(0,moduleTable.length()-5);;
        switch (moduleTable.toUpperCase()){
//		StockOfferPrice
            case ModuleTable.DATAFOLDER :
                entity = new SysDataFolder();
                moduleName = "资料文件";
                break;
            case ModuleTable.MAIN_CONTENT:
            case ModuleTable.MAIN_CONTENT_DRAFT:
            case ModuleTable.RECIPIENT:
            case ModuleTable.VMAIL_DELETED:
            case ModuleTable.VMAIL_PERPETUAL:
                entity = new MailContent();
                moduleName ="邮件系统";
                break;
            case ModuleTable.PRODUCT_HISTORY :
                entity = new ProductHistory();
                moduleName = "产品历史面价";
                break;
            case ModuleTable.PRODUCT_GNUMBER:
                entity = new StockProduceSerialNumber();
                moduleName ="型号条码库";
                break;
            case ModuleTable.PRODUCT_XP :
                entity = new ProductXP();
                moduleName = "选品";
                break;
            case ModuleTable.PRODUCT_MS :
                entity = new ProductMS();
                moduleName = "商品描述";
                break;
            case ModuleTable.PRODUCT_MG :
                entity = new ProductMG();
                moduleName = "商品美图";
                break;
            case ModuleTable.PRODUCT_XGSQ :
                entity = new ProductXGSQ();
                moduleName = "美工修改申请";
                break;
            case ModuleTable.SALARY_INCOME_TAX :
                entity = new SalaryIncomeTax();
                moduleName = "个人所得税";
                break;
            case ModuleTable.SALARY_FOR_PROBATION :
                entity = new SalaryForProbation();
                moduleName = "试用期工资";
                break;
            case ModuleTable.SALARY_WELFARE :
                entity = new SalaryWelfare();
                moduleName = "社保公积金";
                break;
            case ModuleTable.SALARY_OTHER_ENTRY :
                entity = new SalaryOtherEntry();
                moduleName = "薪资变动表";
                break;
            case ModuleTable.SALARY_BASE_INFO :
                entity = new SalaryBaseInfo();
                moduleName = "基础薪资表";
                break;
            case ModuleTable.SALARY_BASE_ENTRY :
                entity = new SalaryBaseEntry();
                moduleName = "基础薪资录入";
                break;
            case ModuleTable.TRAINING_PLAN_ENTRY_FORM_DETAIL :
                entity = new TrainingPlanEntryFormDetail();
                moduleName = "培训报名表";
                break;
            case ModuleTable.TRAINING_PLAN_ENTRY_FORM :
                entity = new TrainingPlanEntryForm();
                moduleName = "在线培训通知";
                break;
            case ModuleTable.TRAINING_APPRAISE_LECTURER :
                entity = new TrainingAppraiseLecturer();
                moduleName = "培训师评价表";
                break;
            case ModuleTable.TRAINING_EXTERNAL_APPLY :
                entity = new TrainingExternalApply();
                moduleName = "外部培训申请";
                break;
            case ModuleTable.TRAINING_PLAN_RECORD :
                entity = new TrainingPlanRecord();
                moduleName = "年度培训记录";
                break;
            case ModuleTable.TRAINING_PLAN_ND :
                entity = new TrainingPlanND();
                moduleName = "年度培训计划";
                break;
            case ModuleTable.TRAINING_PLAN_S :
                entity = new TrainingPlanS();
                moduleName = "实习生培训计划";
                break;
            case ModuleTable.TRAINING_PLAN_X :
                entity = new TrainingPlanX();
                moduleName = "新员工培训计划";
                break;
            case ModuleTable.TRAINING_NEEDS :
                entity = new TrainingNeeds();
                moduleName = "培训需求调查表";
                break;
            case ModuleTable.TALENT_POOL :
                entity = new TalentPool();
                moduleName = "人才库";
                break;
            case ModuleTable.EMPLOYEES_CARE_ABOUT :
                entity = new EmployeesCareAbout();
                moduleName = "员工关怀记录表";
                break;
            case ModuleTable.SCORE_FOR_PROBATION_SELF :
                entity = new ScoreForProbationSelf();
                moduleName = "转正自我评价表";
                break;
            case ModuleTable.SCORE_FOR_PROBATION :
                entity = new ScoreForProbation();
                moduleName = "转正评分表";
                break;
            case ModuleTable.JOBCONTENT_FOR_PROBATION :
                entity = new JobContentForProbation();
                moduleName = "试用期工作安排表";
                break;
            case ModuleTable.INTERVIEW_RESULTS :
                entity = new InterviewResults();
                moduleName = "面试评价表";
                break;
            case ModuleTable.RECRUITMENT_APPLY :
                entity = new RecruitmentApply();
                moduleName = "招聘需求申请表";
                break;
            case ModuleTable.POSITION_INSTRUCTIONS :
                entity = new PositionInstructions();
                moduleName = "岗位说明书";
                break;
            case ModuleTable.BASEINFO :
                entity = new BaseInfo();
                moduleName = "基础数据";
                break;
            case ModuleTable.PRODUCT_BASIS :
                entity = new ProductBasis();
                moduleName = "商品库";
                break;
            case ModuleTable.PRODUCT_BASIS_COMPONENT :
                entity = new ProductBasisComponent();
                moduleName = "商品子件";
                break;
            case ModuleTable.PRODUCT_BASIS_COMPETE :
                entity = new ProductBasisCompete();
                moduleName = "商品竞品库";
                break;
            case ModuleTable.PRODUCT_ACTIVE :
                entity = new ProductActive();
                moduleName = "选品库";
                break;
            case ModuleTable.PRODUCT_CAREFULLY_CHOSEN :
                entity = new ProductCarefullyChosen();
                moduleName = "精品库";
                break;
            case ModuleTable.PRODUCT_ACTIVE_COMPONENT :
                entity = new ProductActiveComponent();
                moduleName = "选品子件";
                break;
            case ModuleTable.PRODUCT_ACTIVE_COMPETE :
                entity = new ProductActiveCompete();
                moduleName = "选品竞品库";
                break;
            case ModuleTable.PRODUCT_LISTING :
                entity = new ProductActive();
                moduleName = "Listing库";
                break;
            case ModuleTable.PRODUCT_INFO :
                entity = new ProductInfo();
                moduleName = "产品信息";
                break;
            case ModuleTable.ROLE_INFO :
                entity = new SysRoleInfo();
                moduleName = "角色信息";
                break;
            case ModuleTable.USER_INFO :
                entity = new SysUserInfo();
                moduleName = "用户信息";
                break;
            case ModuleTable.COMPANY_INFO :
                entity = new CompanyInfo();
                moduleName = "公司信息 ";
                break;
            case ModuleTable.ORGANIZATION_INFO :
                entity = new SysOrganizationInfo();
                moduleName = "组织机构";
                break;
            case ModuleTable.DEPOT_INFO :
                entity = new SysDepotInfo();
                moduleName = "仓库信息";
                break;
            case ModuleTable.ACCOUNT_BAND_DEPT :
                entity = new SysAccountBandDept();
                moduleName = "部门绑定账户";
                break;
            case ModuleTable.CLIENT_GATHERING :
                entity = new ClientGathering();
                moduleName = "客户应收统计";
                break;
            case ModuleTable.CLIENT_GATHERING_XM :
                entity = new ClientGatheringXm();
                moduleName = "项目应收统计";
                break;
            case ModuleTable.PROVIDER_PAYMENT :
                entity = new ProviderPayment();
                moduleName = "供应商应付统计";
                break;
            case ModuleTable.USER_SALES_PERFORMANCE :
                entity = new UserSalesPerformance();
                moduleName = "销售业绩统计 ";
                break;
            case ModuleTable.USER_SALES_PERFORMANCE_XM :
                entity = new UserSalesPerformanceXm();
                moduleName = "项目利润统计  ";
                break;
            case ModuleTable.ACT_RE_MODEL :
                entity = new ActProcessModel();
                moduleName ="流程模型";
                break;
            case ModuleTable.ACT_RE_PROCDEF :
                entity = new ActProcessDefinition();
                moduleName ="流程定义";
                break;
            case ModuleTable.ACT_HI_TASKINST :
                entity = new ActHistoricTask();
                moduleName ="流程任务";
                break;
            case ModuleTable.ACT_HI_PROCINST :
                entity = new ActHistoricInstance();
                moduleName ="流程运行";
                break;
            case ModuleTable.ATTENDANCE_WORK_DATE_SET :
                entity = new AttendanceWorkDateSet();
                moduleName ="工作时间设定";
                break;
            case ModuleTable.OPERATE_USER_APPLY :
                entity = new OperateUserApply();
                moduleName ="运营账号申请";
                break;
            case ModuleTable.OPERATE_USER_INFO :
                entity = new OperateUserInfo();
                moduleName ="运营人员备案";
                break;
            case ModuleTable.OPERATE_USER_EXIT :
                entity = new OperateUserExit();
                moduleName ="运营账号关闭";
                break;
            case ModuleTable.OPERATE_COMPANY_APPLY :
                entity = new OperateCompanyApply();
                moduleName ="运营公司备案";
                break;
            case ModuleTable.OPERATE_COMPANY_ROUTE :
                entity = new OperateCompanyRoute();
                moduleName ="运营机构";
                break;
            case ModuleTable.OPERATE_COMPANY_RATIO :
                entity = new OperateCompanyRatio();
                moduleName ="运营比例";
                break;
            case ModuleTable.OPERATE_COMPANY_EXIT :
                entity = new OperateCompanyExit();
                moduleName ="公司合作解除";
                break;
            case ModuleTable.OPERATE_BIND_APPLY :
                entity = new OperateBindApply();
                moduleName ="运营绑定";
                break;
            case ModuleTable.OPERATE_BIND_TRANSFER :
                entity = new OperateBindTransfer();
                moduleName ="公司运营转移";
                break;
            case ModuleTable.OPERATE_ORG_TRANSFER :
                entity = new OperateOrgTransfer();
                moduleName ="运营架构转移";
                break;
            case ModuleTable.OPERATE_BIND_EXIT :
                entity = new OperateBindExit();
                moduleName ="运营退出";
                break;
            case ModuleTable.OPERATE_COMPANY_LEVEL :
                entity = new OperateCompanyLevel();
                moduleName ="招商级别备案";
                break;
            case ModuleTable.OPERATE_LEVEL_APPLY :
                entity = new OperateLevelApply();
                moduleName ="运营职级申请";
                break;
            case ModuleTable.POSITION_RECRUITMENT_APPLY :
                entity = new PositionRecruitmentApply();
                moduleName ="人员需求申请";
                break;
            case ModuleTable.POSITION_RECRUITMENT_MODIFY :
                entity = new PositionRecruitmentModify();
                moduleName ="人员需求修改";
                break;
            case ModuleTable.POSITION_INTERVIEW_APPLY :
                entity = new PositionInterviewApply();
                moduleName ="面试备案";
                break;
            case ModuleTable.POSITION_USER_APPLY :
                entity = new PositionUserApply();
                moduleName ="账号申请";
                break;
            case ModuleTable.POSITION_CHANGE_APPLY :
                entity = new PositionChangeApply();
                moduleName ="员工转岗";
                break;
            case ModuleTable.POSITION_USER_LEAVE :
                entity = new PositionUserLeave();
                moduleName ="员工离职";
                break;
            case ModuleTable.ATTENDANCE_JB :
                entity = new AttendanceJB();
                moduleName ="加班申请";
                break;
            case ModuleTable.ATTENDANCE_QJ :
                entity = new AttendanceQJ();
                moduleName ="请假申请";
                break;
            case ModuleTable.ATTENDANCE_TX :
                entity = new AttendanceTX();
                moduleName ="调休申请";
                break;
            case ModuleTable.ATTENDANCE_WC :
                entity = new AttendanceWC();
                moduleName ="外出申请 ";
                break;
            case ModuleTable.BANK_MONEY :
                entity = new BankMoney();
                moduleName ="银行账户余额";
                break;
            case ModuleTable.BANK_MONEY_DETAIL :
                entity = new BankMoneyDetail();
                moduleName ="银行日记账";
                break;
            case ModuleTable.WEEKLY_FINISH_ACCOUNT :
                entity = new WeeklyFinishAccount();
                moduleName ="差旅车补报销";
                break;
            case ModuleTable.FIXED_ASSETS :
                entity = new FixedAssets();
                moduleName ="固定资产登记";
                break;
            case ModuleTable.NOTICE:
                entity = new Notice();
                moduleName = "通告发起";
                break;
            case ModuleTable.ORDER_OFFICE_SUPPLIES :
                entity = new OrderOfficeSupplies();
                moduleName ="办公用品采购";
                break;
            case ModuleTable.OFFICE_PAYMENT_ORDER :
                entity = new OfficePaymentOrder();
                moduleName ="行政付款";
                break;
            case ModuleTable.OFFICE_RECEIVE :
                entity = new OfficeReceive();
                moduleName ="办公用品领用";
                break;
            case ModuleTable.OFFICE_LOSS :
                entity = new OfficeLoss();
                moduleName ="办公用品损耗";
                break;
            case ModuleTable.STAMP :
                entity = new Stamp();
                moduleName ="印章登记表";
                break;
            case ModuleTable.STAMP_APPLY :
                entity = new StampApply();
                moduleName ="刻章申请单";
                break;
            case ModuleTable.MEETING_ROOM :
                entity = new MeetingRoom();
                moduleName ="会议室信息";
                break;
            case ModuleTable.MEETING_ROOM_APPOINTMENT :
                entity = new MeetingRoomAppointment();
                moduleName ="会议室预约单";
                break;
            case ModuleTable.MEETING_ROOM_CANCEL :
                entity = new MeetingRoomCancel();
                moduleName ="会议室取消单";
                break;
            case ModuleTable.BUSINESS_CARD_APPLY :
                entity = new BusinessCardApply();
                moduleName ="名片申请单";
                break;
            case ModuleTable.OFFICE_STOCK :
                entity = new OfficeStock();
                moduleName ="办公用品库存";
                break;
            case ModuleTable.EXPENSE_TRANSFER:
                entity = new ExpenseTransfer();
                moduleName ="费用划拨";
                break;
            case ModuleTable.EXPENSE_TRANSFER_LIST:
                entity = new ExpenseTransfer();
                moduleName ="费用批量划拨";
                break;
            case ModuleTable.OPERATE_EXPENSE_TRANSFER:
                entity = new OperateExpenseTransfer();
                moduleName ="公司费用划拨";
                break;
            case ModuleTable.OPERATE_EXPENSE_TRANSFER_YY:
                entity = new OperateExpenseTransfer();
                moduleName ="公司费用划拨";
                break;
            case ModuleTable.OPERATE_EXPENSE_TRANSFER_CW:
                entity = new OperateExpenseTransfer();
                moduleName ="公司费用划拨";
                break;
            case ModuleTable.COMPANY_CREDIT_EXTENSION:
                entity = new CompanyCreditExtension();
                moduleName ="公司授信";
                break;
            case ModuleTable.COMPANY_CREDIT_RETURN:
                entity = new CompanyCreditReturn();
                moduleName ="公司还信";
                break;
            case ModuleTable.PARTNER_BOOKED_APPLY:
                entity = new PartnerBookedApply();
                moduleName ="入账申请";
                break;
            case ModuleTable.PARTNER_PAYMENT_APPLY:
                entity = new PartnerPaymentApply();
                moduleName ="合作商付款申请";
                break;
            case ModuleTable.REIMBURSEMENT_APPLY:
                entity = new ReimbursementApply();
                moduleName ="职能报销申请";
                break;
            case ModuleTable.OPERATE_SERVICE_CHARGE_APPLY:
                entity = new OperateServiceChargeApply();
                moduleName ="运营服务费申请";
                break;
            case ModuleTable.USER_WELFARE:
                entity = new UserWelfare();
                moduleName = "员工福利申请";
                break;
            case ModuleTable.USER_SALARY:
                entity = new UserSalary();
                moduleName = "员工薪资申请";
                break;
            case ModuleTable.USER_RANKAPPLY:
                entity = new UserRankApply();
                moduleName = "员工职级申请";
                break;
            case ModuleTable.USER_RANK:
                entity = new UserRank();
                moduleName = "员工职级管理";
                break;
            case ModuleTable.USER_PERFORMANCERULE:
                entity = new UserPerformanceRule();
                moduleName = "员工绩效规则";
                break;
            case ModuleTable.USER_PERFORMANCECONDITION:
                entity = new UserPerformanceCondition();
                moduleName = "员工绩效情况";
                break;
            case ModuleTable.USER_PAYMENTYB:
                entity = new UserPaymentYB();
                moduleName = "医保缴纳申请";
                break;
            case ModuleTable.USER_PAYMENTSB:
                entity = new UserPaymentSB();
                moduleName = "社保缴纳申请";
                break;
            case ModuleTable.USER_PAYMENTGJJ:
                entity = new UserPaymentGJJ();
                moduleName = "公积金缴纳申请";
                break;
            case ModuleTable.PURCHASE_PLAN:
                entity = new PurchasePlan();
                moduleName = "采购计划";
                break;
            case ModuleTable.PURCHASE_PLAN_SON:
                entity = new PurchasePlanSon();
                moduleName = "采购计划子表";
                break;
            case ModuleTable.PURCHASE_PLAN_CANCEL:
                entity = new PurchasePlanCancel();
                moduleName = "取消采购计划";
                break;
            case ModuleTable.PURCHASE_PLAN_CANCEL_SON:
                entity = new PurchasePlanCancelSon();
                moduleName = "取消采购计划子表";
                break;
            case ModuleTable.PURCHASE_ORDER:
                entity = new PurchaseOrder();
                moduleName = "采购订单";
                break;
            case ModuleTable.PURCHASE_ORDER_SON:
                entity = new PurchaseOrderSon();
                moduleName = "采购订单子表";
                break;
            case ModuleTable.PAYMENT:
                entity = new Payment();
                moduleName = "线上付款";
                break;
            case ModuleTable.PAYMENT_SON:
                entity = new PaymentSon();
                moduleName = "线上付款子表";
                break;
            case ModuleTable.OFFLINE_PAYMENT:
                entity = new OfflinePayment();
                moduleName = "线下付款";
                break;
            case ModuleTable.OFFLINE_PAYMENT_SON:
                entity = new OfflinePaymentSon();
                moduleName = "线下付款子表";
                break;
            case ModuleTable.REFUND:
                entity = new Refund();
                moduleName = "采购退货";
                break;
            case ModuleTable.REFUND_SON:
                entity = new RefundSon();
                moduleName = "采购退货子表";
                break;
            case ModuleTable.DISTRIBUTION:
                entity = new Distribution();
                moduleName = "1688铺货";
                break;
            case ModuleTable.DISTRIBUTION_SON:
                entity = new DistributionSon();
                moduleName = "1688铺货子表";
                break;
            case ModuleTable.PURCHASING_SUPPLIER:
                entity = new PurchasingSupplier();
                moduleName = "采购供应商备案";
                break;
            case ModuleTable.OFFLINE_PURCHASE_ORDER:
                entity = new OfflinePurchaseOrder();
                moduleName = "线下采购订单";
                break;
            case ModuleTable.PURCHASE_ADDRES:
                entity = new PurchaseAddress();
                moduleName = "采购地址";
                break;
            case ModuleTable.DISMOUNTING:
                entity = new Dismounting();
                moduleName = "拆装单";
                break;
            case ModuleTable.GOODS_ALLOCATION:
                entity = new GoodsAllocation();
                moduleName = "货位管理";
                break;
            case ModuleTable.MANUAL_ASSEMBLY:
                entity = new ManualAssembly();
                moduleName = "手工组装";
                break;
            case ModuleTable.PURCHASE_STORAGE:
                entity = new PurchaseStorage();
                moduleName = "采购入库";
                break;
            case ModuleTable.OFFLINE_PURCHASE_STORAGE:
                entity = new OfflinePurchaseStorage();
                moduleName = "线下入库";
                break;
            case ModuleTable.PURCHASING_ERROR:
                entity = new PurchasingError();
                moduleName = "采购报错单";
                break;
            case ModuleTable.PUTAWAY:
                entity = new Putaway();
                moduleName = "质检上架单";
                break;
            case ModuleTable.STOCK_ALLOT:
                entity = new StockAllot();
                moduleName = "库存调拨单";
                break;
            case ModuleTable.STOCK_CONTROL:
                entity = new StockControl();
                moduleName = "库存管理";
                break;
            case ModuleTable.STOCK_TAKING:
                entity = new StockTaking();
                moduleName = "库存盘点单";
                break;
            case ModuleTable.ASSEMBLY_MAINTAIN:
                entity = new AssemblyMaintain();
                moduleName = "商品组装方案维护";
                break;
            case ModuleTable.ASSEMBLY_PLAN:
                entity = new AssemblyPlan();
                moduleName = "商品组装方案";
                break;
            case ModuleTable.UPDATE_LOG:
                entity = new UpdateLog();
                moduleName = "数据变更记录";
                break;
            case ModuleTable.SUB_INV_TRANSFER:
                entity = new SubInvTransfer();
                moduleName = "移仓单";
                break;
            case ModuleTable.STOCK_HISTORY:
                entity = new StockHistory();
                moduleName = "历史库存记录";
                break;
            case ModuleTable.STOCK_RECORD:
                entity = new StockRecord();
                moduleName = "库存情况记录";
                break;
            case ModuleTable.LOGSTICS_SERVER:
                entity = new LogsticsServer();
                moduleName = "物流服务商";
                break;
            case ModuleTable.LOGSTICS_PATTERN:
                entity = new LogsticsPattern();
                moduleName = "物流名称";
                break;
            case ModuleTable.FBA_PLAN_ORDER:
                entity = new FbaPlanOrder();
                moduleName = "头程计划单";
                break;
            case ModuleTable.FBA_PLAN_ORDER_DETAIL:
                entity = new FbaPlanOrderDetail();
                moduleName = "头程计划单明细";
                break;
            case ModuleTable.FBA_BOX:
                entity = new FbaBox();
                moduleName = "头程装箱单";
                break;
            case ModuleTable.FBA_BOXS:
                entity = new FbaBox();
                moduleName = "完成单";
                break;
            case ModuleTable.FBA_BOX_DETAIL:
                entity = new FbaBoxDetail();
                moduleName = "头程装箱单明细";
                break;
            case ModuleTable.AMAZON_SHOP:
                entity = new AmazonShop();
                moduleName = "网店资料绑定";
                break;
            case ModuleTable.AMAZON_SHOP_ORDER:
                entity = new AmazonShopOrder();
                moduleName = "网店资料绑定";
                break;
            case ModuleTable.AMAZON_SHOP_EXCHANGE_RATE:
                entity = new AmazonShopExchangeRate();
                moduleName = "汇率设置";
                break;
            case ModuleTable.AMAZON_SHOP_PRODUCT:
                entity = new AmazonShopProduct();
                moduleName = "网店商品信息";
                break;
            case ModuleTable.AMAZON_ANALYSIS:
                entity = new AmazonAnalysis();
                moduleName = "亚马逊商品运营分析表";
                break;
            case ModuleTable.AMAZON_SHOP_PRODUCT_REPORT:
                entity = new AmazonShopProductReport();
                moduleName = "亚马逊分析报告";
                break;
            case ModuleTable.INDEX_IMAGE:
                entity = new IndexImage();
                moduleName = "首页图片";
                break;
            default :
                break;
        }
        resMap.put("entity", entity);
        resMap.put("moduleName", moduleName);
        return resMap;
    }
}
